import { IRouterConfig } from 'ice';
import Login from '@/pages/Login';
import BasicLayout from '@/layouts/BasicLayout';
import ArticleList from '@/pages/ArticleList';
import ArticleRelease from '@/pages/ArticleRelease';
import NewCategory from '@/pages/NewCategory';
import CategoryList from '@/pages/CategoryList';
import NewAdminUser from '@/pages/NewAdminUser';
import AdminUsersList from '@/pages/AdminUsersList';

const routerConfig: IRouterConfig[] = [
  {
    path: '/',
    exact: true,
    component: Login,
  },
  {
    path: '/basic',
    component: BasicLayout,
    children: [
      {
        path: '/ArticleList',
        exact: true,
        component: ArticleList,
      },
      {
        path: '/ArticleRelease',
        exact: true,
        component: ArticleRelease,
      },
      {
        path: '/ArticleRelease/:id',
        exact: true,
        component: ArticleRelease,
      },
      {
        path: '/NewCategory',
        exact: true,
        component: NewCategory,
      },
      {
        path: '/CategoryList',
        exact: true,
        component: CategoryList,
      },
      {
        path: '/NewAdminUser',
        exact: true,
        component: NewAdminUser,
      },
      {
        path: '/AdminUsersList',
        exact: true,
        component: AdminUsersList,
      },
    ],
  },
];
export default routerConfig;
